Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Estoy construyendo un proyecto en el explorador de archivos en línea, cada vez que intento iniciar la aplicación en el host local, dice "no se reconoce el comando du".
const {execSync} = require('child_process'); try{ const result = execSync(`du -sh "\Users\hites\Downloads\1.1 Node Project1 - File Explorer.zip (1)\Node Project1 - File Explorer"`).toString(); console.log(result); }catch(err){ console.log(`Error: ${err}`);

producción:::

 'du' is not recognized as an internal or external command, operable program or batch file. node:child_process:903 throw err; ^ Error: Command failed: du -sh "C:\Users\hites\Downloads\1.1 Node Project1 - File Explorer.zip (1)\Node Project1 - File Explorer\static\code" 'du' is not recognized as an internal or external command, operable program or batch file. at checkExecSyncError (node:child_process:826:11) at execSync (node:child_process:900:15) at calculateSizeD (C:\Users\hites\Downloads\1.1 Node Project1 - File Explorer.zip (1)\Node Project1 - File Explorer\lib\calculateSizeD.js:8:27) at C:\Users\hites\Downloads\1.1 Node Project1 - File Explorer.zip (1)\Node Project1 - File Explorer\lib\mainContent.js:55:57 at Array.forEach (<anonymous>) at buildMainContent (C:\Users\hites\Downloads\1.1 Node Project1 - File Explorer.zip (1)\Node Project1 - File Explorer\lib\mainContent.js:31:11) at Server.respond (C:\Users\hites\Downloads\1.1 Node Project1 - File Explorer.zip (1)\Node Project1 - File Explorer\lib\respond.js:72:29) at Server.emit (node:events:390:28)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Para que esto funcione, simplemente puede ejecutarlo en wsl (Subsistema de Windows para Linux) asumiendo que lo tiene instalado y asumiendo que la versión de wsl/linux que usa tiene du. Trabajó para mi. Tendría que revisar su ruta para usar /mnt/c/... en lugar de C:\...

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!